package com.ddwl.goods.dao.model;

import com.ddwl.common.dao.model.BaseModel;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Table;
import java.math.BigDecimal;
import java.time.Instant;

/**
 * 预约购
 *
 * @author Fu Zhaohui
 * @version 1.0.0
 * @date 2019/8/14 19:04
 */
@Setter
@Getter
@Table(name = "sys_reserve")
public class Reserve extends BaseModel {

    /**
     * 商品id
     */
    private String itemId;

    /**
     * 预约价格
     */
    private BigDecimal price;

    /**
     * 付尾款结束时间
     */
    private Instant restPayEndDate;
    /**
     * 预约人数
     */
    private Integer personNum;

    /**
     * 定金
     */
    private BigDecimal reservePay;

    /**
     *付尾款开始时间
     */
    private Instant restPayStartDate;

    /**
     * 订金抵扣的面额
     */
    private BigDecimal reservePayDeduct;

    /**
     * 预售开始时间
     */
    private Instant reserveStart;
    /**
     * 预售结束时间
     */
    private Instant reserveEnd;

}
